-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(v7)!: check transactions succeed after they're included in a block #1087
fix(v7)!: check transactions succeed after they're included in a block #1087
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Yea this is an SDK thing. It always returns code 0 so long as it passes message Validate(), but then once included is when the real failure can occur (like gas, etc) I do worry that some users may want a tx which is successful on submit but fail upstream (I have this exact case checked with proof of authority). I need to think on this more |
hmm, i think we should maybe introduce different error types then; that way you get an |
Thinking about it, I think it makes sense to for ExecTx. If someone wants to bypass they can use |
@fastfadingviolets This will need the latest v7 branch merged in on your side, then it will be good to go (does not seem I have maintainer edit perms to this PR) Ill also port to v8 / main as well |
Head branch was pushed to by a user without write access
dda5d50
to
8ef62a9
Compare
Ty! |
…ey're included in a block (#1095) * Fix v7: check transactions succeed after they're included in a block (#1087) (cherry picked from commit a3d5c18) # Conflicts: # examples/cosmos/chain_miscellaneous_test.go * merge conflicts (incoming) --------- Co-authored-by: violet <[email protected]> Co-authored-by: Reece Williams <[email protected]> Co-authored-by: Reece Williams <[email protected]>
Summary
Sometimes a transaction returns code 0 initially, but then fails when a validator goes to actually include it in a block. This PR adds code to cosmos' ExecTx to make sure transactions are verified after their inclusion in a block; if they fail at any stage of proceedings, an error is returned.